import VueRouter from "vue-router";
import home from "./components/container/home.vue";
import user from "./components/container/user.vue";
import cart from "./components/container/cart.vue";
import news from "./components/container/news.vue";
import login from "./components/user/login.vue";
import register from "./components/user/register.vue";
import profile from "./components/user/profile.vue";

let router  = new VueRouter({
    routes :[
        {path:"/",redirect:"/home"},
        {path:"/home",component:home},
        {path:"/user",component:user},
        {path:"/cart",component:cart},
        {path:"/news",component:news},
        {path:"/user/login",component:login},
        {path:"/user/register",component:register},
        {path:"/user/profile",component:profile}
    ]
})

export default router;